package sctu.edu.java.year2016.team01.lishuai.day20160522.chapter5_1;

/**
 * Created by 李大帅 on 2016/5/22.
 * 创建一个一维数组，并将其遍历输出。
 */
import java.util.Scanner;
public class Good {
    public static void main(String[] args) {
        int[] arr =new int[7];
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入一维数组的元素：");
        for(int i=0;i<arr.length;i++)
        {
            int arry = scan.nextInt();
            arr[i] = arry;
        }
        System.out.println("遍历的数组为：");
        for(int x:arr)
        {
            System.out.print(x + " ");
        }
    }
}